<!--<div class="layui-card layadmin-header">-->
<!--    <div class="layui-breadcrumb" lay-filter="breadcrumb">-->
<!--        <a lay-href=""><cite>主页</cite></a>-->
<!--        <a><cite>竞价选票</cite></a>-->
<!--        <a lay-href="/modules/tdx/function"><cite>策略列表</cite></a>-->
<!--    </div>-->
<!--</div>-->

<style>
  /*.layui-table-cell {*/
  /*    height: auto;*/
  /*    line-height: 28px;*/
  /*    padding: 0 15px;*/
  /*    position: relative;*/
  /*    overflow: hidden;*/
  /*    text-overflow: ellipsis;*/
  /*    white-space: normal;*/
  /*    box-sizing: border-box;*/
  /*}*/
</style>

<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-form layui-card-header layuiadmin-card-header-auto">

      <div class="layui-form-item">
        <!--                <div class="layui-inline">-->
        <!--                    <label class="layui-form-label">用户名</label>-->
        <!--                    <div class="layui-input-block">-->
        <!--                        <input type="text" name="userName" placeholder="请输入用户名" autocomplete="off"-->
        <!--                               class="layui-input" style="width: 200px;">-->
        <!--                    </div>-->
        <!--                </div>-->
        <div class="layui-inline">
          <label class="layui-form-label">策略名称</label>
          <div class="layui-input-block">
            <input type="text" name="name" placeholder="请输入策略名称" autocomplete="off" class="layui-input"
              style="width: 200px;">
          </div>
        </div>
        <!--                <div class="layui-inline">-->
        <!--                    <label class="layui-form-label">是否共享</label>-->
        <!--                    <div class="layui-input-block">-->
        <!--                        <select name="isShare">-->
        <!--                            <option value="">全部</option>-->
        <!--                            <option value="1">共享</option>-->
        <!--                            <option value="0">隐藏</option>-->
        <!--                        </select>-->
        <!--                    </div>-->
        <!--                </div>-->
        <div class="layui-inline">
          <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="LAY-front-search">
            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查询
          </button>
        </div>
      </div>
    </div>

    <div class="layui-card-body">
      <div style="padding-bottom: 10px;">
        <a class="layui-btn layui-btn-normal" href="javascript:" lay-href="/modules/tdx/functionAdd">
          <i class="layui-icon">&#xe654;</i>添加策略</a>
      </div>
      <table id="LAY-manage" lay-filter="LAY-manage"></table>
      <script type="text/html" id="table-list">
                {{#  if(d.userId == d.loginUser ){ }}
                <a class="a-link" lay-event="edit">修改</a>
                <!--                {{#  if(d.status == 0 ){ }}-->
                <!--                <a class="a-link" lay-event="enable">启用</a>-->
                <!--                {{#  } else if(d.status == 1){ }}-->
                <!--                <a class="a-link-danger" lay-event="disable">禁用</a>-->
                <!--                {{#  } }}-->
                <a class="a-link-danger" lay-event="del">删除</a>
                {{#  } else  { }}
                                {{#  } }}
                {{#  if(d.favorite == 1 ){ }}
                <a class="a-link-danger" lay-event="cancelFavorite">取消收藏</a>
                {{#  } else { }}
                <a class="a-link" lay-event="favorite">收藏</a>
                {{#  } }}
            </script>
    </div>
  </div>
</div>

<script>
  layui.use(['function', 'table'], layui.factory('function'));
</script>